public class UserDao {
    public User findUser(String username) {
        // 假设实际情况为从数据库获取用户
        if("admin".equals(username)){
            return new User("admin", "123456");
        }
        return null;
    }
}